package com.lovo.roomProject.room.dao;

import com.lovo.roomProject.pojo.CutPageBean;
import com.lovo.roomProject.pojo.RoomDO;

import java.util.List;

public interface RoomDAO {
    //查询
    List listRoom();

    List listRoomByType(String type);

    //分页和查找
    CutPageBean listRoomByPage(int current,String addr,String status,String available,String type);


    RoomDO getById(int id);


   //添加
    void insert(RoomDO roomDO);
   //查询班级名称
    RoomDO getAddr(String addr);

    //删除
    void delete(int id);

    //查询房间人数
    int getCount(int id);


    List listStudentById(int id);


    void update(RoomDO roomDO);




}
